Skip to content

Configure Zero Trust Network Access gateway settings for secure remote access

Request

Update APIGW gateway configuration for a node (appliance)

Note that this endpoint used to be apigw. The config section is still named apigw.


"WireGuard" is a registered trademark of Jason A. Donenfeld.

Requires node::configure::apigw permissions

Security
JWTAuthorizer
Path
nodeIDstringrequired

Node ID

Bodyapplication/json
certstring

APIGW gateway certificate (FQDN)

Example:"myztnahost.mycompany.com"
enabledboolean

Enable this plugin

Example:true
hoststring

APIGW gateway host

Example:"myztnahost.mycompany.com"
portnumber, [ 1 .. 65535 ]

APIGW gateway port

Example:9927
wireguardEnabledboolean

Enable wireguard

Example:true
wireguardEndpointstring, (hostname)

WireGuard endpoint

Example:"myztnahost.mycompany.com"
wireguardPortnumber, [ 1 .. 65535 ]

WireGuard port

Example:9926
curl -i -X PUT \
  'https://apidocs.trustgrid.io/_mock/node/{nodeID}/config/ztnagw' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "cert": "myztnahost.mycompany.com",
    "enabled": true,
    "host": "myztnahost.mycompany.com",
    "port": 9927,
    "wireguardEnabled": true,
    "wireguardEndpoint": "myztnahost.mycompany.com",
    "wireguardPort": 9926
  }'

Responses

OK